package com.wiwj.springboot.dubbo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@ImportResource("classpath:config/dubbo-consumer.xml")
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
		/*ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
		CityService cityService = context.getBean(CityService.class);
		City city = cityService.findCityById(1);
		System.out.println(city.getCityName());*/
		
	}

}
